Optimal. Leaf size=310 \[ \frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}+\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}+\frac{\sqrt [4]{c} (5 b B-9 A c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{4 \sqrt{2} b^{13/4}}-\frac{\sqrt [4]{c} (5 b B-9 A c) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}+1\right )}{4 \sqrt{2} b^{13/4}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.271474, antiderivative size = 310, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 10, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {1584, 457, 325, 329, 297, 1162, 617, 204, 1165, 628} \[ \frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}+\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{b}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}+\frac{\sqrt [4]{c} (5 b B-9 A c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{4 \sqrt{2} b^{13/4}}-\frac{\sqrt [4]{c} (5 b B-9 A c) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}+1\right )}{4 \sqrt{2} b^{13/4}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1584
Rule 457
Rule 325
Rule 329
Rule 297
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{\sqrt{x} \left (A+B x^2\right )}{\left (b x^2+c x^4\right )^2} \, dx &=\int \frac{A+B x^2}{x^{7/2} \left (b+c x^2\right )^2} \, dx\\ &=-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}+\frac{\left (-\frac{5 b B}{2}+\frac{9 A c}{2}\right ) \int \frac{1}{x^{7/2} \left (b+c x^2\right )} \, dx}{2 b c}\\ &=\frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}+\frac{(5 b B-9 A c) \int \frac{1}{x^{3/2} \left (b+c x^2\right )} \, dx}{4 b^2}\\ &=\frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}-\frac{(c (5 b B-9 A c)) \int \frac{\sqrt{x}}{b+c x^2} \, dx}{4 b^3}\\ &=\frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}-\frac{(c (5 b B-9 A c)) \operatorname{Subst}\left (\int \frac{x^2}{b+c x^4} \, dx,x,\sqrt{x}\right )}{2 b^3}\\ &=\frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}+\frac{\left (\sqrt{c} (5 b B-9 A c)\right ) \operatorname{Subst}\left (\int \frac{\sqrt{b}-\sqrt{c} x^2}{b+c x^4} \, dx,x,\sqrt{x}\right )}{4 b^3}-\frac{\left (\sqrt{c} (5 b B-9 A c)\right ) \operatorname{Subst}\left (\int \frac{\sqrt{b}+\sqrt{c} x^2}{b+c x^4} \, dx,x,\sqrt{x}\right )}{4 b^3}\\ &=\frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}-\frac{(5 b B-9 A c) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{b}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{8 b^3}-\frac{(5 b B-9 A c) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{b}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{8 b^3}-\frac{\left (\sqrt [4]{c} (5 b B-9 A c)\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{b}}{\sqrt [4]{c}}+2 x}{-\frac{\sqrt{b}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{8 \sqrt{2} b^{13/4}}-\frac{\left (\sqrt [4]{c} (5 b B-9 A c)\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{b}}{\sqrt [4]{c}}-2 x}{-\frac{\sqrt{b}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{8 \sqrt{2} b^{13/4}}\\ &=\frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}-\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (\sqrt{b}-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}+\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (\sqrt{b}+\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}-\frac{\left (\sqrt [4]{c} (5 b B-9 A c)\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{4 \sqrt{2} b^{13/4}}+\frac{\left (\sqrt [4]{c} (5 b B-9 A c)\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{4 \sqrt{2} b^{13/4}}\\ &=\frac{5 b B-9 A c}{10 b^2 c x^{5/2}}-\frac{5 b B-9 A c}{2 b^3 \sqrt{x}}-\frac{b B-A c}{2 b c x^{5/2} \left (b+c x^2\right )}+\frac{\sqrt [4]{c} (5 b B-9 A c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{4 \sqrt{2} b^{13/4}}-\frac{\sqrt [4]{c} (5 b B-9 A c) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{b}}\right )}{4 \sqrt{2} b^{13/4}}-\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (\sqrt{b}-\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}+\frac{\sqrt [4]{c} (5 b B-9 A c) \log \left (\sqrt{b}+\sqrt{2} \sqrt [4]{b} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{8 \sqrt{2} b^{13/4}}\\ \end{align*}
Mathematica [C] time = 0.44617, size = 151, normalized size = 0.49 \[ \frac{2 c x^{3/2} (A c-b B) \, _2F_1\left (\frac{3}{4},2;\frac{7}{4};-\frac{c x^2}{b}\right )}{3 b^4}+\frac{4 A c-2 b B}{b^3 \sqrt{x}}-\frac{2 A}{5 b^2 x^{5/2}}+\frac{\sqrt [4]{c} (b B-2 A c) \tan ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{x}}{\sqrt [4]{-b}}\right )}{(-b)^{13/4}}+\frac{b \sqrt [4]{c} (b B-2 A c) \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{x}}{\sqrt [4]{-b}}\right )}{(-b)^{17/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.017, size = 339, normalized size = 1.1 \begin{align*} -{\frac{2\,A}{5\,{b}^{2}}{x}^{-{\frac{5}{2}}}}+4\,{\frac{Ac}{{b}^{3}\sqrt{x}}}-2\,{\frac{B}{{b}^{2}\sqrt{x}}}+{\frac{A{c}^{2}}{2\,{b}^{3} \left ( c{x}^{2}+b \right ) }{x}^{{\frac{3}{2}}}}-{\frac{Bc}{2\,{b}^{2} \left ( c{x}^{2}+b \right ) }{x}^{{\frac{3}{2}}}}+{\frac{9\,c\sqrt{2}A}{16\,{b}^{3}}\ln \left ({ \left ( x-\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) \left ( x+\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}+{\frac{9\,c\sqrt{2}A}{8\,{b}^{3}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}+{\frac{9\,c\sqrt{2}A}{8\,{b}^{3}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}-{\frac{5\,\sqrt{2}B}{16\,{b}^{2}}\ln \left ({ \left ( x-\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) \left ( x+\sqrt [4]{{\frac{b}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{b}{c}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}-{\frac{5\,\sqrt{2}B}{8\,{b}^{2}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}-{\frac{5\,\sqrt{2}B}{8\,{b}^{2}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{b}{c}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.65527, size = 2310, normalized size = 7.45 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.35634, size = 409, normalized size = 1.32 \begin{align*} -\frac{B b c x^{\frac{3}{2}} - A c^{2} x^{\frac{3}{2}}}{2 \,{\left (c x^{2} + b\right )} b^{3}} - \frac{\sqrt{2}{\left (5 \, \left (b c^{3}\right )^{\frac{3}{4}} B b - 9 \, \left (b c^{3}\right )^{\frac{3}{4}} A c\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{b}{c}\right )^{\frac{1}{4}} + 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{b}{c}\right )^{\frac{1}{4}}}\right )}{8 \, b^{4} c^{2}} - \frac{\sqrt{2}{\left (5 \, \left (b c^{3}\right )^{\frac{3}{4}} B b - 9 \, \left (b c^{3}\right )^{\frac{3}{4}} A c\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{b}{c}\right )^{\frac{1}{4}} - 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{b}{c}\right )^{\frac{1}{4}}}\right )}{8 \, b^{4} c^{2}} + \frac{\sqrt{2}{\left (5 \, \left (b c^{3}\right )^{\frac{3}{4}} B b - 9 \, \left (b c^{3}\right )^{\frac{3}{4}} A c\right )} \log \left (\sqrt{2} \sqrt{x} \left (\frac{b}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{b}{c}}\right )}{16 \, b^{4} c^{2}} - \frac{\sqrt{2}{\left (5 \, \left (b c^{3}\right )^{\frac{3}{4}} B b - 9 \, \left (b c^{3}\right )^{\frac{3}{4}} A c\right )} \log \left (-\sqrt{2} \sqrt{x} \left (\frac{b}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{b}{c}}\right )}{16 \, b^{4} c^{2}} - \frac{2 \,{\left (5 \, B b x^{2} - 10 \, A c x^{2} + A b\right )}}{5 \, b^{3} x^{\frac{5}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]